The app maps street name fragments to Bilbao geographic zones. There are two ways to manage entries: through the UI (no code changes) or by editing the source file directly.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Miguelcds/App_AsignadorZonasBilbao/llms.txt
Use this file to discover all available pages before exploring further.
Method 1 — Via the UI
Use the ➕ Nueva Calle tab in the app to add custom entries without touching any code.Enter the street name fragment and zone
Type the street name fragment (it will be stored in uppercase automatically) and the zone it belongs to.
UI-added entries take priority over base dictionary entries. The app merges them as
{ ...zonasEstandar, ...customStreets }, so your custom entries always win in case of a conflict.js/data.js directly.
Method 2 — Via source code
Editjs/data.js to add entries to the base dictionary that ship with the app.
Dictionary format
The dictionary is a plain JavaScript object namedzonasEstandar. Keys are uppercase street name fragments; values are zone names.
How matching works
The app calls.toUpperCase() on the street name from the Excel file, then checks whether the dictionary key is contained in that string using .includes(). This means:
- Keys must be uppercase.
- A key matches any street name that contains the key as a substring. For example,
"AV MADARIAGA"matches"AV MADARIAGA KALEA","AV MADARIAGA 12", and any other string containing those characters. - Shorter, more general keys will match more streets. More specific keys match fewer streets.
Adding a new zone section
Add a comment header and your entries
Follow the existing style — add a comment header for the zone, then list your entries:Make sure the object structure remains valid: each entry ends with a comma (except the last entry in the object).
Modifying or removing entries
- Modify: Change the value (zone name) of an existing key, then bump the cache version.
- Remove: Delete the key-value line, then bump the cache version.
js/data.js, always redeploy the app and increment the CACHE version in sw.js. See Service Worker for more on cache versioning.